<template>
  <div class="list-box">
    <ul class="content">
      <li
        v-for="item in list" :key="item.id"
        class="list">
        <div class="img-box">
          <img :src="item.portrait" alt="">
        </div>
        <div class="info-box">
          <div class="basic">
            <span class="name">{{item.name}}</span>
            <span class="date">{{item.time}}</span>
          </div>
          <div class="time">{{item.duration}}分钟</div>
          <div class="desc">{{item.content}}</div>
        </div>
      </li>
    </ul>
  </div>
</template>
<script>
export default {
  props: ['list']
}
</script>
<style lang="scss" scoped>
@import '../../assets/css/mixin';
.list-box {
  @include border-top-1px(#e4e4e4);
  .content {
    padding: 0 .3rem;
    .list {
      display: flex;
      padding: .3rem 0 .2rem;
      .img-box {
        width: .8rem;
        flex: 0 0 .8rem;
        margin-right: .2rem;
        img {
          width: 100%;
          border-radius: 50%;
        }
      }
      .info-box {
        flex: 1;
        min-width: 0;
        .basic {
          color: #2f2f2f;
          font-size: .32rem;
          .date {
            color: #898989;
            font-size: .24rem;
            float: right;
          }
        }
        .time {
          color: #666;
          font-size: .24rem;
          margin-top: .14rem;
        }
        .desc {
          line-height: .4rem;
          color: #2f2f2f;
          padding: .28rem 0 .16rem;
        }
      }
    }
  }
}
</style>
